<section>
    <form>
        <fieldset>
            {{#eq action "add"}}
            <h2>{{messages.user.view.add.title}}</h2>
            {{/eq}}
            {{#eq action "edit"}}
            <h2>{{format messages.user.view.edit.title model.attributes.login}}</h2>
            {{/eq}}
            {{#eq action "delete"}}
            <h2>{{format messages.user.view.delete.title model.attributes.login}}</h2>
            {{/eq}}
            {{#eq action "view"}}
            <h2>{{format messages.user.view.view.title model.attributes.login}}</h2>
            {{/eq}}

            {{#neq action "add"}}
            <input class="form-control" type="text" style="display: none" data-bind="value: id" />
            {{/neq}}

            <div class="form-group">
                <label class="control-label">{{messages.user.attribute.login}}</label>
                <input class="form-control" type="text" placeholder="{{messages.user.attribute.login}}" data-bind="value: login" />
            </div>

            <div class="form-group">
                <label class="control-label" >{{messages.user.attribute.displayname}}</label>
                <input class="form-control" type="text" placeholder="{{messages.user.attribute.displayname}}" data-bind="value: displayname" />
            </div>

            <div class="form-group">
                <label class="control-label">{{messages.user.attribute.roles}}</label>
                <ul class="specificAction multiselect" data-inputids="rolesIds">
                    {{#each model.attributes.roles}}
                    <li>{{code}}</li>
                    {{/each}}
                </ul>
            </div>

            {{buttonsCrud action}}
        </fieldset>
    </form>
</section>